package com.shopnight.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shopnight.entity.ShopGoods;
import com.shopnight.service.ShopGoodsService;
import com.shopnight.mapper.ShopGoodsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13201
* @description 针对表【shop_goods】的数据库操作Service实现
* @createDate 2022-09-09 15:54:53
*/
@Service
public class ShopGoodsServiceImpl extends ServiceImpl<ShopGoodsMapper, ShopGoods>
    implements ShopGoodsService{

    @Override
    public List<ShopGoods> selectGoods(Long indentId) {
        List<ShopGoods> goodsList = this.baseMapper.selectList(new LambdaQueryWrapper<ShopGoods>().eq(ShopGoods::getIndentId, indentId));
        return goodsList;
    }

}




